// let admin = [
//     {
//         path: '/home',
//         name: 'Home',
//         component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue'),
//         children: [
//             {
//                 path: 'one',
//                 title: "One标题",
//                 component: () => import('../views/home/One.vue'),
//             },
//             {
//                 path: 'two',
//                 title: "two标题",
//                 component: () => import('../views/home/Two.vue'),
//             },
//             {
//                 path: 'three',
//                 title: "three标题",
//                 component: () => import('../views/home/Three.vue'),
//             }
//         ]
//       }
// ]

// let teac = [
//     {
//         path: '/home',
//         name: 'Home',
//         component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue'),
//         children: [
//             {
//                 path: 'one',
//                 title: "One标题",
//                 component: () => import('../views/home/One.vue'),
//             },
//             {
//                 path: 'two',
//                 title: "two标题",
//                 component: () => import('../views/home/Two.vue'),
//             }
//         ]
//       }
// ]

// let stu = [
//     {
//         path: '/home',
//         name: 'Home',
//         component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue'),
//         children: [
//             {
//                 path: 'one',
//                 title: "One标题",
//                 component: () => import('../views/home/One.vue'),
//             }
//         ]
//       }
// ]

// export {
//     admin,
//     teac,
//     stu
// }


export default [
    {
        path: '/home',
        name: 'Home',
        component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue'),
        children: [
            {
                path: 'one',
                title: "One标题",
                auth: ['admin', 'teac', 'stu'],
                component: () => import('../views/home/One.vue'),
            },
            {
                path: 'two',
                title: "two标题",
                auth: ['admin', 'teac'],
                component: () => import('../views/home/Two.vue'),
            },
            {
                path: 'three',
                title: "three标题",
                auth: ['admin'],
                component: () => import('../views/home/Three.vue'),
            }
        ]
      }
]